package yana.tpe.onlineshop.services.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yana.tpe.onlineshop.domain.dao.UserDao;
import yana.tpe.onlineshop.domain.domains.User;
import yana.tpe.onlineshop.services.UserService;

@Service
public class UserServiceImple extends AbstractServiceImpl<Integer, User> 
        implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> getOrderedList(String parameter, boolean ascending) {
        return userDao.getOrderedList(parameter, ascending);
    }

    @Override
    protected UserDao getDao() {
        return userDao;
    }

}
